package com.slipper.core.database.vo;

import com.slipper.constants.Constants;

public class IndexFieldVO {
    /** 字段名称 */
    private String name;
    /** 排序类型 */
    private String orderType;
    /** 排序 */
    private Integer ordinal;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isAscending() {
        return Constants.ORDER_BY_ASC.equals(orderType);
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public Integer getOrdinal() {
        return ordinal;
    }

    public void setOrdinal(Integer ordinal) {
        this.ordinal = ordinal;
    }
}
